package com.sen.paydemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 退款信息
 *
 * @author 韩宗森
 * @since 2024-01-09 19:53:30
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper = false)
@Tag(name = "OrderInfo对象", description = "订单信息")
@TableName("t_order_info")
public class RefundInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "商户订单编号")
    private String orderNo;

    @Schema(description = "退款编号")
    private String refundNo;

    @Schema(description = "支付系统退款单号")
    private String refundId;

    @Schema(description = "原订单金额(分)")
    private Integer totalFee;

    @Schema(description = "退款金额(分)")
    private Integer refund;

    @Schema(description = "退款原因")
    private String reason;


    @Schema(description = "退款单状态")
    private String refundStatus;

    @Schema(description = "申请退款返回参数")
    private String contentReturn;

    @Schema(description = "退款结果通知参数")
    private String contentNotify;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
